package com.huaweicloud.sdk.sms.v3.model;





import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaweicloud.sdk.sms.v3.model.DiskIntargetServer;
import com.huaweicloud.sdk.sms.v3.model.VolumeGroups;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.Objects;

/**
 * 鎺ㄨ崘鐨勭洰鐨勭鏈嶅姟鍣ㄩ厤缃�
 */
public class InitTargetServer  {



    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="disks")
    
    private List<DiskIntargetServer> disks = null;
    

//    @JsonInclude(JsonInclude.Include.NON_NULL)
//    @JsonProperty(value="volume_groups")
    
//    private VolumeGroups volumeGroups;

    public InitTargetServer withDisks(List<DiskIntargetServer> disks) {
        this.disks = disks;
        return this;
    }

    
    public InitTargetServer addDisksItem(DiskIntargetServer disksItem) {
        this.disks.add(disksItem);
        return this;
    }

    public InitTargetServer withDisks(Consumer<List<DiskIntargetServer>> disksSetter) {
        if(this.disks == null ){
            this.disks = new ArrayList<>();
        }
        disksSetter.accept(this.disks);
        return this;
    }

    /**
     * 鎺ㄨ崘鐨勭洰鐨勭鏈嶅姟鍣ㄧ殑纾佺洏淇℃伅
     * @return disks
     */
    public List<DiskIntargetServer> getDisks() {
        return disks;
    }

    public void setDisks(List<DiskIntargetServer> disks) {
        this.disks = disks;
    }

    

//    public InitTargetServer withVolumeGroups(VolumeGroups volumeGroups) {
//        this.volumeGroups = volumeGroups;
//        return this;
//    }
//
//    public InitTargetServer withVolumeGroups(Consumer<VolumeGroups> volumeGroupsSetter) {
//        if(this.volumeGroups == null ){
//            this.volumeGroups = new VolumeGroups();
//            volumeGroupsSetter.accept(this.volumeGroups);
//        }
//        
//        return this;
//    }


//    /**
//     * Get volumeGroups
//     * @return volumeGroups
//     */
//    public VolumeGroups getVolumeGroups() {
//        return volumeGroups;
//    }
//
//    public void setVolumeGroups(VolumeGroups volumeGroups) {
//        this.volumeGroups = volumeGroups;
//    }
//
//    
//
//    @Override
//    public boolean equals(java.lang.Object o) {
//        if (this == o) {
//            return true;
//        }
//        if (o == null || getClass() != o.getClass()) {
//            return false;
//        }
//        InitTargetServer initTargetServer = (InitTargetServer) o;
//        return Objects.equals(this.disks, initTargetServer.disks) &&
//            Objects.equals(this.volumeGroups, initTargetServer.volumeGroups);
//    }
//    @Override
//    public int hashCode() {
//        return Objects.hash(disks, volumeGroups);
//    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class InitTargetServer {\n");
        sb.append("    disks: ").append(toIndentedString(disks)).append("\n");
        // sb.append("    volumeGroups: ").append(toIndentedString(volumeGroups)).append("\n");
        sb.append("}");
        return sb.toString();
    }
    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
    
}

